package com.java.reflection;

public class Student {

	// 属性
	// 成员变量
	private String stuName;
	private String stuSex;
	private double stuScore;

	/**
	 * 行为
	 */
	// 学习行为
	public void doStuding() {
		System.out.println(this.stuName + " is studing...");
	}

	// 构造方法

	public Student(String stuName, String stuSex, double stuScore) {
		super();
		this.stuName = stuName;
		this.stuSex = stuSex;
		this.stuScore = stuScore;
	}

	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}
	// getter，setter

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public String getStuSex() {
		return stuSex;
	}

	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}

	public double getStuScore() {
		return stuScore;
	}

	public void setStuScore(double stuScore) {
		this.stuScore = stuScore;
	}

	@Override
	public String toString() {
		return "Student [stuName=" + stuName + ", stuSex=" + stuSex + ", stuScore=" + stuScore + "]";
	}

}
